<?php session_start();
	$reg=$_SESSION["correo_1_cliente"];
	if (!isset($reg))
	header("Location: index.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Solicitud de Clase</title>
	<link rel="stylesheet" href="css/style.css" type="text/css">
	<link rel="stylesheet" href="css/form.css" type="text/css">
	<link type="text/css" href="css/demo_table.css" rel="stylesheet" />
  	<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  	<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
	<script type="text/javascript" language="javascript" src="js/funciones.js"></script>
	<script type="text/javascript" src="js/prefixfree.min.js"></script>
	<script type="text/javascript" src="js/menuVertical.js"></script>
	<script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script>
	<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
	<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
 	<script>
  		$(document).ready(function() {
    		$("#datepicker").datepicker({
       			minDate: "#actualDate",
       			maxDate: new Date(2015, 12, 31),
		       dateFormat: 'yy-mm-dd',
       			constrainInput: true,
	});
  		});
  	</script>
</head>
<body>
	<div class="top">
		<img class="img" src="img/logo.png" alt=""  height="82" >
		<span id="encabezado">Plataforma de Solicitud de Servicios</span>
	</div>
	<div class="menu">
		<ul id="navi">
			<li><a href="alumnoDatosPersonales.php">Datos personales</a></li>
			<li><a href="alumnoSolicitarClase.php">Solicitar Clases</a></li>
			<li><a href="alumnoCancelaciones.php">Cancelar clases</a></li>
			<li><a href="alumno.php">Mi historial</a></li>
			<li><a href="logout.php">Salir</a></li>
		</ul>	
	</div>
	<div class="contenido">	
		<h2>Formas de Pago</h2>
		<div id="divPagos">
			<?php
				require_once('includes/conexionbd.inc.php');
				$date=date('Y-m-d h:i:s');
				$query = "INSERT INTO view_clase (cliente_documento_cliente, fecha_solicitud, hora_clase, duracion, tutor_doc_tutor, fecha_clase, materia,estado_solic, numero_alumnos) VALUES ($reg->documento_cliente, '$date', '{$_POST['hora']}', '{$_POST['duracion']}', '{$_POST['tutor']}', '{$_POST['fecha']}', '{$_POST['materia']}', 'Pendiente', '{$_POST['alumnos']}')";
				$res = mysql_query($query, $conn) or die (mysql_error($conn));
				echo "<form method='post' action='https://gateway2.pagosonline.net/apps/gateway/boton_simplificado.html' id='pagosonline'>";
					echo "<input type='image' src='https://gateway2.pagosonline.net/images/clientes/b_simplificado_1.png' border='0' alt=''>";
					echo "<input name='usuarioId' type='hidden' value='82578'>";
					echo "<input name='firma' type='hidden' value='7aed3f0e95b6769ae157fead695304d2b0a94990'>";
					echo "<input name='descripcion' type='hidden' value='Clases Particulares'>";
					echo "<input name='valor' type='hidden' value='20000.0'>";
					echo "<input name='moneda' type='hidden' value='COP'>";
					echo "<input name='lng' type='hidden' value='es'>";
					echo "<input name='iva' type='hidden' value=''>";
					echo "<input name='ivaItem' type='hidden' value=''>";
					echo "<input name='baseDevolucionIva' type='hidden' value=''>";
					echo "<input name='baseDevolucionIvaItem' type='hidden' value=''>";
					echo "<input name='valorOtros' type='hidden' value=''>";
					echo "<input name='prueba' type='hidden' value='1'> ";
					echo "<input name='valorOtrosItem' type='hidden' value=''>";
					echo "<input name='urlAprobada' type='hidden' value='http://www.tecnologiaonline.com.co/pruebas/aprobada.html'>";
					echo "<input name='url_respuesta' type='hidden' value='http://www.tecnologiaonline.com.co/pruebas/confirmacion.php'>";
					echo "<input name='urlEnValidacion' type='hidden' value='http://www.tecnologiaonline.com.co/pruebas/validacion.html'>";
					echo "<input name='urlRechazada' type='hidden' value='http://www.tecnologiaonline.com.co/pruebas/rechazada.html'>";
					echo "<input name='descripcionItem' type='hidden' value='Clases Particulares'>";
					echo "<input name='referenciaItem' type='hidden' value=''>";
					echo "<input name='cantidadItem' type='hidden' value='1'>";
					echo "<input name='valorItem' type='hidden' value='20000.0'>";
					echo "<input name='codigo_pse' type='hidden' value=''>";
					echo "<input name='codigoPseItem' type='hidden' value=''>";
					echo "<input name='botonSimplificado' type='hidden' value='true'>";
					echo "<input name='nombreComprador' type='hidden' value='$reg->nombre_uno'>";
					echo "<input name='emailComprador' type='hidden' value='$reg->correo_1_cliente'>";
					echo "<input name='extra1' type='hidden' value='$reg->documento_cliente'>";
					echo "<input name='extra1' type='hidden' value='{$_POST['materia']}'>";
					echo "<input name='documentoIdentificacion' type='hidden' value='$reg->documento_cliente'>";
				echo "</form>";
			?>
		<boton id="botonDescuento">Descuento de la cuenta</boton>
	</div>
	</div>
	<div class="footer">
		<ul>
			<li><b>Calle 100 No. 8 55 Torre C Piso 10 World Trade Center</b></li>
			<li><b>Teléfono</b> <span>646 71 23</span></li>
			<li><b>Fax</b> <span>621 15 65</span></li>
		</ul>
		<article class="redes">
			<g:plusone></g:plusone>
		</article>
		<article class="redes">
			<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FTecnologia-Online%2F146028292143954&amp;send=false&amp;layout=button_count&amp;width=110&amp;show_faces=true&amp;action=like&amp;colorscheme=dark&amp;font=tahoma&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:21px;" allowTransparency="true"></iframe></li>
		</article>
		<article class="redes">
			<a href="https://twitter.com/lleoz" class="twitter-follow-button" data-show-count="false" data-lang="es" data-size="large">Sigueme @lleoz</a></li>
		</article>
	</div>
</body>
</html>